package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"shop/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.UserController{}, "post:Login")
	beego.Router("/add", &controllers.ShopController{}, "post:Add")
	beego.Router("/upload", &controllers.ShopController{}, "post:Upload")
	beego.Router("/list", &controllers.ShopController{}, "get:List")
	beego.Router("/show", &controllers.ShopController{}, "get:Show")
}
